﻿using System;
using System.Collections.Generic;
using System.Text;
using YiSha.Entity.OrganizationManage;
using YiSha.Util.Model;

namespace YiSah.Entity.Extension.User
{
    /// <summary>
    /// 用户实体类扩展
    /// </summary>
    public class UserEntityExtension : UserEntity
    {

        /// <summary>
        /// 部门名称
        /// </summary>
        [SqlSugar.SugarColumn(IsIgnore = true)]
        public string DepartmentName { get; set; }
        /// <summary>
        /// 密码字符串
        /// </summary>
        [SqlSugar.SugarColumn(IsIgnore = true)]
        public string PasswordStr { get; set; }
        /// <summary>
        /// 岗位Id
        /// </summary>
        [SqlSugar.SugarColumn(IsIgnore = true)]
        public string PositionIds { get; set; }
        /// <summary>
        /// 岗位名称
        /// </summary>  
        [SqlSugar.SugarColumn(IsIgnore = true)]
        public string PositionName { get; set; }
        /// <summary>
        /// 角色Id
        /// </summary>
        [SqlSugar.SugarColumn(IsIgnore = true)]
        public string RoleIds { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        [SqlSugar.SugarColumn(IsIgnore = true)]
        public string RoleName { get; set; }
    }
    /// <summary>
    /// 获取用户列表请求信息
    /// </summary>
    public class UserReq : Pagination
    {
        /// <summary>
        /// 部门编号
        /// </summary>
        public string DepartmentId { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string Mobile { get; set; }
        /// <summary>
        /// 用户状态(0禁用 1启用)
        /// </summary>
        public int? userStatus_select { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }
    }
}
